<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">订单号:</label>
        <div class="col-xs-12 col-sm-8">
            <input readonly class="form-control" value="{$res.order_no|htmlentities}"/>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">商标印字:</label>
        <div class="col-xs-12 col-sm-8">
            <input readonly class="form-control" value="{$res.trademark_printing|htmlentities}"/>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">标识:</label>
        <div class="col-xs-12 col-sm-8">
            <input readonly class="form-control" value="{$res.abbreviation|htmlentities}"/>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">色号:</label>
        <div class="col-xs-12 col-sm-8">
            <input readonly class="form-control" value="{$res.colour_name|htmlentities}"/>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">员工名称:</label>
        <div class="col-xs-12 col-sm-8">
            <input readonly class="form-control" value="{$res.employee_name|htmlentities}"/>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">发料时间:</label>
        <div class="col-xs-12 col-sm-8">
            <input readonly class="form-control" value="{$res.delivertime|date='Y-m-d H:i:s',###}"/>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">领取数量:</label>
        <div class="col-xs-12 col-sm-8">
            <input readonly class="form-control" value="{$res.quantity|htmlentities}"/>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">发料状态:</label>
        <div class="col-xs-12 col-sm-8">
            <!-- <input readonly class="form-control" value="{$res.status|htmlentities}"/> -->
            {foreach name="status" item="vo"}
                {in name="key" value="$res.status"}
                    <input readonly class="form-control" value="{$vo}"/>
                {/in}
            {/foreach}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">订单数量:</label>
        <div class="col-xs-12 col-sm-8">
            <input readonly class="form-control" value="{$res.order_quantity|htmlentities}"/>
        </div>
    </div>
    <div class="form-group row">
        <label class="control-label col-xs-12 col-sm-2">{:__('物料详情')}:</label>
        <div class="col-xs-12 col-sm-8">
            <dl class="fieldlist" data-template="basictpl" data-name="row[materiallist]">
                <dd>
                    <ins>{:__('原料名')}</ins>
                    <ins>{:__('原料色号')}</ins>
                    <ins>{:__('重量(千克)')}</ins>
                </dd>
                <!--请注意 dd和textarea间不能存在其它任何元素，实际开发中textarea应该添加个hidden进行隐藏-->
                <textarea name="row[materiallist]" class="form-control hidden" cols="30" rows="5">{$row.materiallist}</textarea>
            </dl>
            <script id="basictpl" type="text/html">
                <dd class="form-inline">
                    <ins><input readonly type="text" name="<%=name%>[<%=index%>][material]" class="form-control" value="<%=row.material%>" placeholder="物料名称" /></ins>
                    <ins><input readonly type="text" name="<%=name%>[<%=index%>][material_colour]" class="form-control" value="<%=row.material_colour%>" placeholder="物料颜色"/></ins>
                    <ins><input readonly type="text" name="<%=name%>[<%=index%>][weight]" class="form-control" value="<%=row.weight%>" placeholder="重量"/></ins>
                </dd>
            </script>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="radio">
                {foreach name="statusList" item="vo"}
                    {in name="key" value="$row.status"}
                        <input readonly class="form-control" value="{$vo}"/>
                    {/in}
                {/foreach}
            </div>
        </div>
    </div>
</form>
    